<?php
namespace Home\Controller;
use Think\Controller;
class AjaxController extends Controller {


    public function total(){
        $goods_id=I('post.goods_id');
        $spec_rule=I('post.spec_rule');
        //查询规格价格表
        $total = D('spec_price')->where("goods_id=$goods_id and spec_rule='$spec_rule'")->find();

        $this->ajaxReturn($total);


    }
}